<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>iPhone数码旗舰店 - 管理系统</title>
    <meta name="description" content="iPhone数码旗舰店 - 专业苹果产品销售与管理平台">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
    <link href="../static/ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.8.1}" rel="stylesheet"/>
    <!-- 360浏览器急速模式 -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>

    <!-- 高级科幻风格CSS -->
    <style type="text/css">
        /* ======================
           基础样式与背景
        ====================== */
        body.signin {
            background: #000 url('https://www.apple.com/v/home/be/images/heroes/iphone-15-pro/hero_iphone15pro__i70z9oz3hj2i_large.jpg') no-repeat center center;
            background-size: cover;
            color: #fff;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0;
            padding: 20px;
            position: relative;
            overflow: hidden;
            transition: background-image 1.5s ease-in-out;
        }

        /* 背景遮罩 - 改为更深的遮罩确保文字清晰 */
        .background-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 0;
        }

        /* 粒子效果容器 */
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
            opacity: 0.5;
        }

        /* 登录面板容器 - 改为不透明 */
        .signinpanel {
            width: 90%;
            max-width: 420px;
            margin: 0 auto;
            padding: 40px;
            background: rgba(20, 30, 40, 0.95); /* 提高不透明度 */
            border-radius: 18px;
            box-shadow: 0 0 30px rgba(0, 150, 255, 0.3),
                        0 0 60px rgba(0, 80, 150, 0.2),
                        inset 0 0 10px rgba(0, 195, 255, 0.2);
            position: relative;
            z-index: 2;
            border: 1px solid rgba(0, 195, 255, 0.3);
            transition: all 0.3s ease;
        }

        .signinpanel:hover {
            box-shadow: 0 0 40px rgba(0, 150, 255, 0.5),
                        0 0 80px rgba(0, 80, 150, 0.3),
                        inset 0 0 15px rgba(0, 195, 255, 0.3);
        }

        /* 标题区域 */
        .title-section {
            margin-bottom: 30px;
            text-align: center;
            position: relative;
        }

        .logo-container {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            box-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .logo {
            width: 100%;
            height: auto;
            filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0, 195, 255, 0.7));
        }

        .main-title {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #fff;
            text-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
        }

        .subtitle {
            font-size: 15px;
            color: #d0d0d0; /* 提高文字亮度 */
            margin-bottom: 30px;
            font-weight: 400;
            text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
        }

        /* 登录表单样式 */
        .login-form {
            width: 100%;
            position: relative;
        }

        .form-title {
            font-size: 20px;
            margin-bottom: 20px;
            color: #fff;
            font-weight: 500;
            text-align: center;
            text-shadow: 0 0 8px rgba(0, 195, 255, 0.5);
        }

        .form-control {
            background: rgba(30, 40, 50, 0.9); /* 提高不透明度 */
            border: 1px solid rgba(0, 195, 255, 0.3);
            color: #fff;
            height: 48px;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 16px;
            margin-bottom: 20px;
            transition: all 0.3s;
            box-shadow: 0 0 10px rgba(0, 195, 255, 0.1) inset;
        }

        .form-control:focus {
            border-color: #0071e3;
            outline: none;
            box-shadow: 0 0 15px rgba(0, 113, 227, 0.3),
                        inset 0 0 10px rgba(0, 195, 255, 0.2);
            background: rgba(40, 50, 60, 0.95);
        }

        /* 保留原有按钮样式 */
        .btn-login {
            background-color: #0071e3;
            border: none;
            height: 48px;
            border-radius: 10px;
            color: white;
            font-size: 17px;
            font-weight: 500;
            transition: all 0.3s;
            margin-top: 10px;
            width: 100%;
            cursor: pointer;
            text-shadow: 0 0 5px rgba(0, 195, 255, 0.8);
            box-shadow: 0 0 15px rgba(0, 113, 227, 0.3);
        }

        .btn-login:hover {
            background-color: #0062c3;
            box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
            transform: translateY(-2px);
        }

        /* 复选框样式 */
        .checkbox-custom {
            margin: 15px 0;
            font-size: 15px;
            color: #d0d0d0; /* 提高文字亮度 */
            display: flex;
            align-items: center;
            justify-content: flex-start;
            text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
        }

        .checkbox-custom input {
            margin-right: 10px;
            accent-color: #0071e3;
        }

        /* 验证码区域 */
        .captcha-section {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .captcha-input {
            flex: 1;
        }

        .imgcode {
            border-radius: 8px;
            height: 48px;
            border: 1px solid rgba(0, 195, 255, 0.3);
            box-shadow: 0 0 10px rgba(0, 195, 255, 0.1);
        }

        /* 底部样式 */
        .signup-footer {
            color: rgba(210, 210, 210, 0.9); /* 提高文字亮度 */
            font-size: 13px;
            margin-top: 30px;
            text-align: center;
            width: 100%;
            text-shadow: 0 0 5px rgba(0, 195, 255, 0.3);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .signinpanel {
                padding: 30px;
            }

            .main-title {
                font-size: 24px;
            }

            .subtitle {
                font-size: 14px;
            }
        }
    </style>
</head>

<body class="signin">
<!-- 背景遮罩 -->
<div class="background-overlay"></div>

<!-- 粒子效果容器 -->
<div id="particles-js"></div>

<div class="signinpanel">
    <!-- 标题区域 -->
    <div class="title-section">
        <div class="logo-container">
            <img src="https://www.apple.com/ac/globalnav/7/zh_CN/images/be15095f-5a20-57d0-ad14-cf4c638e223a/globalnav_apple_image__b5er5ngrzxqq_large.svg" alt="Apple Logo" class="logo">
        </div>
        <h1 class="main-title">iPhone数码旗舰店</h1>
        <p class="subtitle">专业苹果产品进销存管理系统</p>
    </div>

    <!-- 登录表单 - 保持原有表单结构和功能 -->
    <div class="login-form">
        <h3 class="form-title">系统登录</h3>
        <form id="signupForm" autocomplete="off">
            <input type="text" name="username" class="form-control" placeholder="用户名" value="admin" />
            <input type="password" name="password" class="form-control" placeholder="密码" value="admin123" />

            <div class="captcha-section" th:if="${captchaEnabled==true}">
                <input type="text" name="validateCode" class="form-control captcha-input" placeholder="验证码" maxlength="5" />
                <a href="javascript:void(0);" title="点击更换验证码">
                    <img th:src="@{/captcha/captchaImage(type=${captchaType})}" class="imgcode" width="100%"/>
                </a>
            </div>

            <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">
                <input type="checkbox" id="rememberme" name="rememberme">
                <label for="rememberme">记住我</label>
            </div>

            <!-- 保持原有登录按钮不变 -->
            <button class="btn btn-login" id="btnSubmit" data-loading="正在验证登录，请稍候...">登 录</button>
        </form>
    </div>

    <!-- 底部版权 -->
    <div class="signup-footer">
        Copyright © 2018-2025 iPhone数码旗舰店 All Rights Reserved.<br>
        专业苹果产品销售与服务提供商
    </div>
</div>

<!-- 引入粒子效果库 -->
<script th:src="@{/js/particles.min.js}"></script>

<!-- 保持原有JS文件引用不变 -->
<script th:inline="javascript">
    var ctx = [[@{/}]];
    var captchaType = [[${captchaType}]];
    var captchaEnabled = [[${captchaEnabled}]];

    // 壁纸列表
    var wallpapers = [
        'https://www.apple.com/v/home/be/images/heroes/iphone-15-pro/hero_iphone15pro__i70z9oz3hj2i_large.jpg',
        'https://www.apple.com/v/home/be/images/heroes/iphone-15/hero_iphone15_announce__uuemlcwczn6u_large.jpg',
        'https://www.apple.com/v/home/be/images/heroes/macbook-air-15/hero_macbook_air_15_midnight__003uq9gw5vci_large.jpg',
        'https://www.apple.com/v/home/be/images/heroes/watch-series-9/hero_watch_s9__f2j6d0w0jmmq_large.jpg',
        'https://www.apple.com/v/home/be/images/heroes/ipad-air/hero_ipad_air__f0w57k2g5pyu_large.jpg'
    ];

    // 初始化粒子效果
    document.addEventListener('DOMContentLoaded', function() {
        particlesJS('particles-js', {
            particles: {
                number: { value: 60, density: { enable: true, value_area: 800 } },
                color: { value: "#00c3ff" },
                shape: { type: "circle" },
                opacity: { value: 0.4, random: true },
                size: { value: 3, random: true },
                line_linked: { enable: true, distance: 150, color: "#00c3ff", opacity: 0.3, width: 1 },
                move: { enable: true, speed: 1.5, direction: "none", random: true, straight: false, out_mode: "out" }
            },
            interactivity: {
                detect_on: "canvas",
                events: {
                    onhover: { enable: true, mode: "repulse" },
                    onclick: { enable: true, mode: "push" }
                }
            }
        });

        // 自动切换背景图
        var currentWallpaper = 0;
        function changeWallpaper() {
            currentWallpaper = (currentWallpaper + 1) % wallpapers.length;
            document.body.style.backgroundImage = 'url(' + wallpapers[currentWallpaper] + ')';
        }

        // 每10秒切换一次背景
        setInterval(changeWallpaper, 10000);
    });
</script>

<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script src="../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script src="../static/ruoyi/js/ry-ui.js" th:src="@{/ruoyi/js/ry-ui.js?v=4.8.1}"></script>
<script src="../static/ruoyi/login.js" th:src="@{/ruoyi/login.js}"></script>
</body>
</html>